const contents = {
  state: {
    list: [],
    list2: [],
    list3: [],
    list4: [],
    list5: [],
    channelIds: 110
  },
  mutations: {
    ADD_CONTENT: (state, obj) => {
      switch (obj.index) {
        case 1:
          state.list.push(obj.content)
          break
        case 2:
          state.list2.push(obj.content)
          break
        case 3:
          state.list3.push(obj.content)
          break
        case 4:
          state.list4.push(obj.content)
          break
        case 5:
          state.list5.push(obj.content)
          break
      }
    }
  },
  actions: {
    addContent: ({ commit }, obj) => {
      commit('ADD_CONTENT', obj)
    }
  }
}

export default contents
